<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>

<body style="height: 100%; width: 100%; overflow: hidden; border: none;">
		<script type="text/javascript">  
			function addOrUpdateType(){
				//debugger;
				var r = $('#typeForm').form('validate');
				if(!r) {
					return false;
				} 
				$.post("${pageContext.request.contextPath}/sys/productType.do?addOrUpdate",$("#typeForm").serializeArray(),function(data){
					$('#MyPopWindow').window('close');
					$('#proTypeTable').datagrid('reload');  
					$.messager.alert('提示',data.msg,'info');
				});
			}
			$('#typePopPanel').panel();
		</script>
		<form id="typeForm" method="post" style="margin: 10;text-align: center;">
			<div id="typePopPanel"  collapsible="true" style="padding:10px;">
				<div region="center" border="false" style="padding:10px;border:1px solid #ccc;">
					<input type="hidden" name="id" id="uuid">
					商品类别：<input type="text" id ="popProtypename" name="protypename" style="width: 200px;border: 1px solid #ccc;padding: 2px;" validType="length[1,30]" class="easyui-validatebox" required="true" /> 
					 <br />
				</div>
				<div region="south" border="false" style="text-align:right;height:30px;line-height:30px;">
					<a href="#" id="btn-back" onclick="closeWindow();" class="easyui-linkbutton" iconCls="icon-back">返回</a>
					<a href="#" id="btn-add" onclick="addOrUpdateType();" class="easyui-linkbutton" iconCls="icon-save">保存</a>
				</div>
			</div>
		</form> 
</body>
</html>